package com.fhz.mvvmshopjava.core;

import androidx.lifecycle.ViewModel;

import com.fhz.mvvmshopjava.utils.UserManager;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;

/**
 * 时间:2022/5/25
 *
 * @author msfeng
 * 简述: TODO
 */
public class BaseViewModel<R extends BaseRepository> extends ViewModel {
    protected R repository;

    @Inject
    protected UserManager userManager;

    public BaseViewModel(R repository) {
        this.repository = repository;
    }

    public UserManager getUserManager() {
        return userManager;
    }
}

